package org.jsola.hr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.vo.BaseVO;

import java.util.Date;
import java.util.List;

import static org.jsola.core.example.BaseExample.*;
import static org.jsola.hr.example.AttendPunchCalibrationExample.E_REMARK;
import static org.jsola.hr.example.AttendPunchCalibrationExample.N_REMARK;
import static org.jsola.hr.example.AttendPunchRecordExample.*;

/**
 * 考勤打卡记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【考勤打卡记录】详情展示对象")
@Data
public class AttendPunchRecordVO extends BaseVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID)
    private String id;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME)
    private String companyName;

    @ApiModelProperty(notes = N_DEPT_ID, example = E_DEPT_ID)
    private String deptId;

    @ApiModelProperty(notes = N_DEPT_NAME, example = E_DEPT_NAME)
    private String deptName;

    @ApiModelProperty(notes = N_EMP_INFO_ID, example = E_EMP_INFO_ID)
    private String empInfoId;

    @ApiModelProperty(notes = N_EMP_INFO_NAME, example = E_EMP_INFO_NAME)
    private String empInfoName;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    private String attendPlanId;

    @ApiModelProperty(notes = N_ATTEND_PLAN_NAME, example = E_ATTEND_PLAN_NAME)
    private String attendPlanName;

    @ApiModelProperty(notes = N_SHOULD_DAY_COUNT, example = E_SHOULD_DAY_COUNT)
    private Integer shouldDayCount;

    @ApiModelProperty(notes = N_YEAR, example = E_YEAR)
    private String year;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH)
    private String month;

    @ApiModelProperty(notes = N_DAY, example = E_DAY)
    private String day;

    @ApiModelProperty(notes = N_PUNCH_TYPE, example = E_PUNCH_TYPE)
    private Integer punchType;

    @ApiModelProperty(notes = N_PUNCH_RANGE, example = E_PUNCH_RANGE)
    private Integer punchRange;

    @ApiModelProperty(notes = N_RANGE_STATE, example = E_RANGE_STATE)
    private Integer rangeState;

    @ApiModelProperty(notes = N_STANDARD_TIME, example = E_STANDARD_TIME)
    private Date standardTime;

    @ApiModelProperty(notes = N_PUNCH_TIME, example = E_PUNCH_TIME)
    private Date punchTime;

    @ApiModelProperty(notes = N_PUNCH_STATUS, example = E_PUNCH_STATUS)
    private Integer punchStatus;

    @ApiModelProperty(notes = N_MINUTE, example = E_MINUTE)
    private Integer minute;

    @ApiModelProperty(notes = N_DECISION_DESC, example = E_DECISION_DESC)
    private String decisionDesc;

    @ApiModelProperty(notes = N_COORDINATE, example = E_COORDINATE)
    private String coordinate;

    @ApiModelProperty(notes = N_LOCATION, example = E_LOCATION)
    private String location;

    @ApiModelProperty(notes = N_PUNCH_WIFI, example = E_PUNCH_WIFI)
    private String punchWifi;

    @ApiModelProperty(notes = N_PUNCH_SOURCE, example = E_PUNCH_SOURCE)
    private Integer punchSource;

    @ApiModelProperty(notes = N_IS_CALIBRATION, example = E_IS_CALIBRATION)
    private Boolean isCalibration;

    @ApiModelProperty(notes = N_IS_MAKE_UP, example = E_IS_MAKE_UP)
    private Boolean isMakeUp;

    @ApiModelProperty(notes = N_HIS_STANDARD_TIME, example = E_HIS_STANDARD_TIME)
    private String hisStandardTime;

    @ApiModelProperty(notes = N_HIS_PUNCH_TIME, example = E_HIS_PUNCH_TIME)
    private Date hisPunchTime;

    @ApiModelProperty(notes = N_HIS_PUNCH_STATUS, example = E_HIS_PUNCH_STATUS)
    private Integer hisPunchStatus;

    @ApiModelProperty(notes = N_PUNCH_SERIAL, example = E_PUNCH_SERIAL)
    private String punchSerial;

    @ApiModelProperty(notes = N_GMT_CREATE, example = E_GMT_CREATE)
    private Date gmtCreate;

    @ApiModelProperty(notes = N_GMT_MODIFIED, example = E_GMT_MODIFIED)
    private Date gmtModified;

    @ApiModelProperty(notes = N_POSITION_NAME, example = E_POSITION_NAME)
    private String positionName;

    @ApiModelProperty(notes = N_NORMAL_DAY, example = E_NORMAL_DAY)
    private Integer normalDay;

    @ApiModelProperty(notes = N_UNUSUAL_DAY, example = E_UNUSUAL_DAY)
    private Integer unusualDay;

    @ApiModelProperty(notes = N_UNUSUAL_COUNT, example = E_UNUSUAL_COUNT)
    private Integer unusualCount;

    @ApiModelProperty(notes = N_WORK_TIME, example = E_WORK_TIME)
    private Integer workTime;

    @ApiModelProperty(notes = N_BE_LATE_COUNT, example = E_BE_LATE_COUNT)
    private Integer beLateCount;

    @ApiModelProperty(notes = N_BE_LATE_TIME, example = E_BE_LATE_TIME)
    private Integer beLateTime;

    @ApiModelProperty(notes = N_LEAVE_EARLY_COUNT, example = E_LEAVE_EARLY_COUNT)
    private Integer leaveEarlyCount;

    @ApiModelProperty(notes = N_LEAVE_EARLY_TIME, example = E_LEAVE_EARLY_TIME)
    private Integer leaveEarlyTime;

    @ApiModelProperty(notes = N_LACK_COUNT, example = E_LACK_COUNT)
    private Integer lackCount;

    @ApiModelProperty(notes = N_COUNT, example = E_COUNT)
    private Integer count;

    @ApiModelProperty(notes = N_TIME_DAY, example = E_TIME_DAY)
    private String timeDay;

    @ApiModelProperty(notes = N_ORDER_BY_ARRIVE, example = E_ORDER_BY_ARRIVE)
    private String orderByArrive;

    @ApiModelProperty(notes = N_ORDER_BY_LEAVE, example = E_ORDER_BY_LEAVE)
    private String orderByLeave;

    @ApiParam(value = N_REMARK, example = E_REMARK)
    @Length(max = 255)
    private String remark;

    @ApiModelProperty(notes = N_CALIBRATION_NAME_HISTORY, example = E_CALIBRATION_NAME_HISTORY)
    private String calibrationNameHistory;

    @ApiModelProperty(notes = N_WORK_DATE, example = E_WORK_DATE)
    private String workDate;

    @ApiModelProperty(notes = N_EMP_PHOTO, example = E_EMP_PHOTO)
    private String empPhoto;

    @ApiModelProperty(notes = N_CALIBRATION, example = E_CALIBRATION)
    private String calibration;

    @ApiModelProperty(notes = N_IS_CALIBRATION_ARRIVE, example = E_IS_CALIBRATION_ARRIVE)
    private Boolean isCalibrationArrive;

    @ApiModelProperty(notes = N_IS_CALIBRATION_LEAVE, example = E_IS_CALIBRATION_LEAVE)
    private Boolean isCalibrationLeave;

    @ApiModelProperty(notes = "上班集合")
    private List<AttendPunchRecordArriveListVO> arriveList;

    @ApiModelProperty(notes = "第一次上班信息")
    private AttendPunchRecordArriveListVO arriveOne;

    @ApiModelProperty(notes = "第二次上班信息")
    private AttendPunchRecordArriveListVO arriveTwo;

    @ApiModelProperty(notes = "下班集合")
    private List<AttendPunchRecordLeaveListVO> leaveList;

    @ApiModelProperty(notes = "第一次下班信息")
    private AttendPunchRecordLeaveListVO leaveOne;

    @ApiModelProperty(notes = "第二次下班信息")
    private AttendPunchRecordLeaveListVO leaveTwo;

    @ApiModelProperty(notes = "导出所需信息:第一次签到状态")
    private String arriveStatus;

    @ApiModelProperty(notes = "导出所需信息:第一次签退状态")
    private String leaveStatus;

    @ApiModelProperty(notes = "导出所需信息:第一次签到时间")
    private String arriveTime;

    @ApiModelProperty(notes = "导出所需信息:第一次签退时间")
    private String leaveTime;

    @ApiModelProperty(notes = "导出所需信息:第一次签到地点")
    private String arrivePlace;

    @ApiModelProperty(notes = "导出所需信息:第一次签退地点")
    private String leavePlace;

    @ApiModelProperty(notes = "导出所需信息:第二次签到状态")
    private String arriveStatusTwo;

    @ApiModelProperty(notes = "导出所需信息:第二次签退状态")
    private String leaveStatusTwo;

    @ApiModelProperty(notes = "导出所需信息:第二次签到时间")
    private String arriveTimeTwo;

    @ApiModelProperty(notes = "导出所需信息:第二次签退时间")
    private String leaveTimeTwo;

    @ApiModelProperty(notes = "导出所需信息:第二次签到地点")
    private String arrivePlaceTwo;

    @ApiModelProperty(notes = "导出所需信息:第二次签退地点")
    private String leavePlaceTwo;

    @ApiModelProperty(notes = "异常合计")
    private Integer errorNumber;


    @ApiModelProperty(notes = "上班打卡状态:（0：无效打卡，1：正常，2：迟到，3：早退）")
    private Integer onStatus;

    @ApiModelProperty(notes = "下班打卡状态:（0：无效打卡，1：正常，2：迟到，3：早退）")
    private Integer offStatus;

    @ApiModelProperty(notes = "当天打卡状态：1：正常，0：异常")
    private Integer punchDayStatus;
}

